#ifndef LOGIN_WIDGET_H
#define LOGIN_WIDGET_H

#include <qwidget.h>

class QLabel;
class QLineEdit;
class QPushButton;
class QCheckBox;


class LoginWidget
	: public QWidget
{
	Q_OBJECT

	QLabel * _pLabelUsername;
	QLineEdit * _pLineEditUsername;

	QLabel * _pLabelPassword;
	QLineEdit * _pLineEditPassword;

	QCheckBox * _pCheckBoxRememberPassword;

public:
	LoginWidget(QWidget * parent = 0, const char * name = "LoginWidget");
	~LoginWidget();

	QString password();
	QString username();
	bool remember();

	void setPassword(const QString & sPassword);	
	void setUsername(const QString & sUsername);
	void setRemember(bool b);	

	void enableControls(bool bEnable = true);

public:
	QPushButton * pPushButtonSignIn;
};

#endif //LOGIN_WIDGET_H
